#!/bin/bash
#
# hook file for git_hash shtamp in version
#
EX=$( git rev-parse HEAD | awk '{ print substr( $0, 0, 7 ) }'  ) && cat server/def.h.in | sed s/^#define\ GIT_HASH\ \".*\"$/#define\ GIT_HASH\ \"$EX\"/ > test.txt && mv test.txt server/def.h.in

EZ=$( git rev-parse HEAD | awk '{ print substr( $0, 0, 7 ) }'  ) && cat client/def.h.in | sed s/^#define\ GIT_HASH\ \".*\"$/#define\ GIT_HASH\ \"$EZ\"/ > test.txt && mv test.txt client/def.h.in



